<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui">
<h:head>

</h:head>

<h:body>

<h:form>
    <p:dataTable var="team" value="">
        <f:facet name="header">
            NBA Teams
        </f:facet>
 
        <p:columnGroup type="header">
            <p:row>
                <p:column rowspan="2" headerText="Team" />
                <p:column colspan="2" headerText="Stats" />
            </p:row>
            <p:row>
                <p:column headerText="Wins" />
                <p:column headerText="Losses" />
            </p:row>
        </p:columnGroup>
 
        <p:subTable var="stats" value="">
            <f:facet name="header">
                <h:outputText value="" />
            </f:facet>
            <p:column>
                <h:outputText value="" />
            </p:column>
            <p:column>
                <h:outputText value="" />
            </p:column>
            <p:column>
                <h:outputText value="" />
            </p:column>
            <p:columnGroup type="footer">
                <p:row>
                    <p:column footerText="Totals: " style="text-align:right"/>
                    <p:column footerText="" />
                    <p:column footerText="" />
                </p:row>
            </p:columnGroup>
        </p:subTable>
    </p:dataTable>
</h:form>

</h:body>

</html>
